<%@page import="tx.bjdacp.model.*" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>
<%@ include file="/commons/taglibs.jsp" %>

<rapid:override name="head">
	<title><%=DrugSellUnitModifyLog.TABLE_ALIAS%> 维护</title>

	<link href="<c:url value="/widgets/simpletable/simpletable.css"/>" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="<c:url value="/widgets/simpletable/simpletable.js"/>"></script>

	<script type="text/javascript" >
		$(document).ready(function() {
			// 分页需要依赖的初始化动作
			window.simpleTable = new SimpleTable('queryForm',${page.thisPageNumber},${page.pageSize},'${pageRequest.sortColumns}');
		});
	</script>
</rapid:override>

<rapid:override name="content">
	<form id="queryForm" name="queryForm" action="<c:url value="/pages/DrugSellUnitModifyLog/list.do"/>" method="post" style="display: inline;">


	<div class="gridTable">

		<simpletable:pageToolbar page="${page}">
		</simpletable:pageToolbar>

		<table width="100%"  border="0" cellspacing="0" class="gridBody">
		  <thead>

			  <tr>
				<th style="width:1px;"> </th>

				<!-- 排序时为th增加sortColumn即可,new SimpleTable('sortColumns')会为tableHeader自动增加排序功能; -->
				<th sortColumn="drug_sell_unit_id" >当前企业</th>
				<th sortColumn="unit_name" ><%=DrugSellUnitModifyLog.ALIAS_UNIT_NAME%></th>
				<th sortColumn="regist_address" ><%=DrugSellUnitModifyLog.ALIAS_REGIST_ADDRESS%></th>
				<th sortColumn="artificial_person" ><%=DrugSellUnitModifyLog.ALIAS_ARTIFICIAL_PERSON%></th>
				<th sortColumn="unit_principal" ><%=DrugSellUnitModifyLog.ALIAS_UNIT_PRINCIPAL%></th>
				<th sortColumn="quality_principal" ><%=DrugSellUnitModifyLog.ALIAS_QUALITY_PRINCIPAL%></th>
				<th sortColumn="apothecary" ><%=DrugSellUnitModifyLog.ALIAS_APOTHECARY%></th>
				<th sortColumn="sell_mode" ><%=DrugSellUnitModifyLog.ALIAS_SELL_MODE%></th>
				<th sortColumn="sell_area" ><%=DrugSellUnitModifyLog.ALIAS_SELL_AREA%></th>
				<th sortColumn="storage_address" ><%=DrugSellUnitModifyLog.ALIAS_STORAGE_ADDRESS%></th>
				<th sortColumn="licence_code" ><%=DrugSellUnitModifyLog.ALIAS_LICENCE_CODE%></th>
				<th sortColumn="unit_found_date" ><%=DrugSellUnitModifyLog.ALIAS_UNIT_FOUND_DATE%></th>
				<th sortColumn="licence_give_date" ><%=DrugSellUnitModifyLog.ALIAS_LICENCE_GIVE_DATE%></th>
				<th sortColumn="licence_expiry_date" ><%=DrugSellUnitModifyLog.ALIAS_LICENCE_EXPIRY_DATE%></th>
				<th sortColumn="gsp_code" ><%=DrugSellUnitModifyLog.ALIAS_GSP_CODE%></th>
				<th sortColumn="gsp_give_date" ><%=DrugSellUnitModifyLog.ALIAS_GSP_GIVE_DATE%></th>
				<th sortColumn="gsp_expiry_date" ><%=DrugSellUnitModifyLog.ALIAS_GSP_EXPIRY_DATE%></th>
				<th sortColumn="is_logout" ><%=DrugSellUnitModifyLog.ALIAS_IS_LOGOUT%></th>
				<th sortColumn="logout_date" ><%=DrugSellUnitModifyLog.ALIAS_LOGOUT_DATE%></th>
				<th sortColumn="mobel_phone" ><%=DrugSellUnitModifyLog.ALIAS_MOBEL_PHONE%></th>
				<th sortColumn="phone" ><%=DrugSellUnitModifyLog.ALIAS_PHONE%></th>
				<th sortColumn="is_tour_drugstore" ><%=DrugSellUnitModifyLog.ALIAS_IS_TOUR_DRUGSTORE%></th>
				<th sortColumn="is_sell_chinese_medicine" ><%=DrugSellUnitModifyLog.ALIAS_IS_SELL_CHINESE_MEDICINE%></th>
				<th sortColumn="is_OTC_unit" ><%=DrugSellUnitModifyLog.ALIAS_IS_OTCUNIT%></th>
				<th sortColumn="is_resend_license" ><%=DrugSellUnitModifyLog.ALIAS_IS_RESEND_LICENSE%></th>
				<th sortColumn="modify_date" ><%=DrugSellUnitModifyLog.ALIAS_MODIFY_DATE%></th>
				<th sortColumn="modify_proceeding" ><%=DrugSellUnitModifyLog.ALIAS_MODIFY_PROCEEDING%></th>

			  </tr>

		  </thead>
		  <tbody>
		  	  <c:forEach items="${page.result}" var="item" varStatus="status">

			  <tr class="${status.count % 2 == 0 ? 'odd' : 'even'}">
				<td>${page.thisPageFirstElementNumber + status.index}</td>

				<td><a href="${ctx}/pages/DrugSellUnit/show.do?drugSellUnitId=${item.drugSellUnitId}&"><c:out value='${item.drugSellUnit.unitName}'/></a>&nbsp;</td>
				<td><c:out value='${item.unitName}'/>&nbsp;</td>
				<td><c:out value='${item.registAddress}'/>&nbsp;</td>
				<td><c:out value='${item.artificialPerson}'/>&nbsp;</td>
				<td><c:out value='${item.unitPrincipal}'/>&nbsp;</td>
				<td><c:out value='${item.qualityPrincipal}'/>&nbsp;</td>
				<td><c:out value='${item.apothecary}'/>&nbsp;</td>
				<td><c:out value='${item.sellMode}'/>&nbsp;</td>
				<td><c:out value='${item.sellArea}'/>&nbsp;</td>
				<td><c:out value='${item.storageAddress}'/>&nbsp;</td>
				<td><c:out value='${item.licenceCode}'/>&nbsp;</td>
				<td><c:out value='${item.unitFoundDateString}'/>&nbsp;</td>
				<td><c:out value='${item.licenceGiveDateString}'/>&nbsp;</td>
				<td><c:out value='${item.licenceExpiryDateString}'/>&nbsp;</td>
				<td><c:out value='${item.gspCode}'/>&nbsp;</td>
				<td><c:out value='${item.gspGiveDateString}'/>&nbsp;</td>
				<td><c:out value='${item.gspExpiryDateString}'/>&nbsp;</td>
				<td><c:out value='${item.isLogout}'/>&nbsp;</td>
				<td><c:out value='${item.logoutDate}'/>&nbsp;</td>
				<td><c:out value='${item.mobelPhone}'/>&nbsp;</td>
				<td><c:out value='${item.phone}'/>&nbsp;</td>
				<td><c:out value='${item.isTourDrugstore}'/>&nbsp;</td>
				<td><c:out value='${item.isSellChineseMedicine}'/>&nbsp;</td>
				<td><c:out value='${item.isOtcunit}'/>&nbsp;</td>
				<td><c:out value='${item.isResendLicense}'/>&nbsp;</td>
				<td><c:out value='${item.modifyDateString}'/>&nbsp;</td>
				<td><c:out value='${item.modifyProceeding}'/>&nbsp;</td>

			  </tr>

		  	  </c:forEach>
		  </tbody>
		</table>

		<simpletable:pageToolbar page="${page}">
		</simpletable:pageToolbar>
	</div>
	</form>
</rapid:override>

<%-- jsp模板继承,具体使用请查看: http://code.google.com/p/rapid-framework/wiki/rapid_jsp_extends --%>
<%@ include file="base.jsp" %>

